#ifndef EXPORTDATA_H
#define EXPORTDATA_H

#include "data/gsdata.h"

#include <QComboBox>
#include <QLineEdit>
#include <QPushButton>
#include <QFormLayout>
#include <QHBoxLayout>
#include <QMessageBox>
#include <QDialog>

class ExportData : public QDialog
{
    Q_OBJECT
public:
    ExportData(QList<GSData*>* dataSet, QWidget *parent = 0);

public slots:
    void okButtonClicked();
    int saveGsppFile(GSData* data);
    int saveTextFile(GSData* data);
    void findFilePath();

private:
    QFormLayout formLayout;
    QLineEdit nameLineEdit;
    QComboBox variableCombox;
    QComboBox typeCombox;
    QPushButton okButton;
    QPushButton cancelButton;
    QPushButton findButton;
    QHBoxLayout hlayout1, hlayout2;
    QList<GSData*>* exportDataSet = NULL;
};

#endif // EXPORTDATA_H
